 //schedule.js
const app = getApp()
const util = require('../../utils/util.js')

Page({
  data: {
    reportId: '',
    problemType: '',
    backDetail: {}
  },
  onLoad: function (options) {
    let that = this
    that.setData({
      reportId: options.reportId,
      problemType: options.problemType,
      scrollHeight: app.getScrollHeight(0)
    })
    // wx.request({
    //   url: '',//这里请求接口29
    //   data: {reportId,problemType},
    //   success(res){
    //     that.setData({
    //       backDetail: res.data
    //     })
    //   }
    // })
    let backDetail = {
      problemType: '软件相关问题',
      imgArray: ['/images/jietu.png', '/images/jietu.png'],
      description: '有一个螺丝掉了有一个螺丝掉了有一个螺丝掉了有一个螺丝掉了有一个螺丝掉了有一个螺丝掉了'
    }
    that.setData({
      backDetail: backDetail
    })
    wx.setNavigationBarTitle({
      title: that.data.backDetail.problemType,
    })
    // Do some initialize when page load.
  },
  onReady: function () {
    // Do something when page ready.
  },
  onShow: function () {
    // Do something when page show.
  },
  onHide: function () {
    // Do something when page hide.
  },
  onUnload: function () {
    // Do something when page close.
  },
  onPullDownRefresh: function () {
    // Do something when pull down
  },
  // Event handler.
})